<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>方才coding</title>
</head>
<body>
<div class="nav">
    <a href="#">首页</a>
    <a href="#">教程</a>
    <a href="#">联系</a>
</div>

<div class="content">
    <div class="items">
        <div class="item">
            <h3>1-编程入门学习，请关注我</h3>
            <p>xx编程入门学习xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx编程入门学习xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx编程入门学习xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</p>
        </div>
        <div class="item">
            <h3>2-编程入门学习，请关注我</h3>
            <p>xx编程入门学习xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</p>
        </div>
        <div class="item">
            <h3>3-编程入门学习，请关注我</h3>
            <p>xx编程入门学习xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</p>
        </div>
        <div class="item">
            <h3>4-编程入门学习，请关注我</h3>
            <p>xx编程入门学习xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</p>
        </div>
        <div class="item">
            <h3>1-编程入门学习，请关注我</h3>
            <p>xx编程入门学习xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</p>
        </div>
        <div class="item">
            <h3>2-编程入门学习，请关注我</h3>
            <p>xx编程入门学习xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</p>
        </div>
        <div class="item">
            <h3>3-编程入门学习，请关注我</h3>
            <p>xx编程入门学习xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</p>
        </div>
        <div class="item">
            <h3>4-编程入门学习，请关注我</h3>
            <p>xx编程入门学习xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</p>
        </div>
        <div class="item">
            <h3>1-编程入门学习，请关注我</h3>
            <p>xx编程入门学习xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</p>
        </div>
        <div class="item">
            <h3>2-编程入门学习，请关注我</h3>
            <p>xx编程入门学习xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</p>
        </div>
        <div class="item">
            <h3>3-编程入门学习，请关注我</h3>
            <p>xx编程入门学习xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</p>
        </div>
        <div class="item">
            <h3>4-编程入门学习，请关注我</h3>
            <p>xx编程入门学习xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</p>
        </div>
    </div>
    <div class="sidebar">
        <h4>学习编程关注我</h4>
        <img src="cover.jpg" alt="logo">
    </div>
    </div>
</div>
</body>
<style>
    .nav {
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        height: 50px;
        text-align: center;
        align-content: center;
        background-color: cornflowerblue;
    }
    .nav a {
        color: black;
        text-decoration: none;
        margin-left: 20px;
    }
    .nav a:hover {
        color: yellowgreen;
    }

    .content {
        display: flex;
        max-width: 1200px;
        margin: 60px auto;
    }

    .items {
        width: 100%;
        box-shadow: 0 0 10px #ccc; /* 边框阴影:没有位移（水平和垂直均为0），具有10像素模糊程度的浅灰色阴影 */
        border-radius: 10px;
        cursor: pointer;
    }
    .item:hover {
        color: darkgoldenrod;
    }
    .item {
        padding-left: 10px;

        border-bottom: #8b949e 1px solid;
    }
    .sidebar {
        margin-left: 10px;
        width: 240px;
        height: 280px;
        position: sticky ;
        text-align: center;
        top: 60px;
        box-shadow: 0 0 10px #ccc; /* 边框阴影:没有位移（水平和垂直均为0），具有10像素模糊程度的浅灰色阴影 */
        border-radius: 5px;
    }
    .sidebar h4 {
        margin-bottom: 10px;
    }
    .sidebar img {
        width: 80%;
        height: 75%;
        border-radius: 5px;
    }
    @media screen and (max-width: 768px) {
        .sidebar {
            display: none;
        }
    }


</style>
</html>